package com.genius.smsweb.dormitorymanage;

import com.genius.smsbase.Controller.GenericController;
import com.genius.smsdao.dormitorymanage.domain.Apartment;
import com.genius.smsservice.dormitorymanage.service.ApartmentManager;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "宿舍管理-公寓", description = "ApartmentController")
@RestController
@RequestMapping(value = "apartment")
public class ApartmentController extends GenericController<Apartment,Long, ApartmentManager> {

    ApartmentManager apartmentManager;

    /**
     * setApartmentManager
     * @param apartmentManager
     */
    @Autowired
    public void setApartmentManager(ApartmentManager apartmentManager){
        this.apartmentManager = apartmentManager;
        this.manager = this.apartmentManager;
    }
}
